package xiangmu1;
//继承
public class Jcar extends Car {
    //封装
    private String CarName;//车名
    private double CarPrice;//日租
    private static double zMonny=500;//余额
    //构造无参方法
    public Jcar(){

    }
    //构造有参方法
    public Jcar(String carName, double carPrice) {
        CarName = carName;
        CarPrice = carPrice;
    }

    //构造set和get方法
    public String getCarName() {
        return CarName;
    }

    public void setCarName(String carName) {
        CarName = carName;
    }

    public double getCarPrice() {
        return CarPrice;
    }

    public void setCarPrice(double carPrice) {
        CarPrice = carPrice;
    }

    public static double getzMonny() {
        return zMonny;
    }

    public static void setzMonny(double zMonny) {
        Jcar.zMonny = zMonny;
    }
}


